﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:ctrl="clr-namespace:AssignmentsManage.Control"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Style x:Key="GeneralTextBox" TargetType="{x:Type TextBox}">
        <Style.Setters>
            <Setter Property="MinHeight" Value="20" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate 
                        TargetType="{x:Type TextBox}">
                        <Border
                              BorderThickness="1"
                              Focusable="False"
                              Background="White"
                              BorderBrush="Gray">
                            <Border x:Name="PART_ContentHost" VerticalAlignment="Center" />
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="GeneralTextBoxAlignTop" TargetType="{x:Type TextBox}" BasedOn="{StaticResource GeneralTextBox}">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate 
                        TargetType="{x:Type TextBox}">
                        <Border
                              BorderThickness="1"
                              Focusable="False"
                              Background="White"
                              BorderBrush="Gray">
                            <ScrollViewer>
                                <Border x:Name="PART_ContentHost" VerticalAlignment="Stretch" ScrollViewer.CanContentScroll="True" />
                            </ScrollViewer>
                            
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
</ResourceDictionary>